package com.ruoyi.project.info.doctor.domain;

import java.math.BigDecimal;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 医生管理对象 doctor
 *
 * @author wzm
 * @date 2022-09-07
 */
public class Doctor extends BaseEntity
{
    private static final long serialVersionUID = 1L;


    /**  */
    private Long id;

    /** 医生姓名 */
    @Excel(name = "医生姓名")
    private String name;

    /** 医生电话 */
    @Excel(name = "医生电话")
    private String phone;

    /** 身份证号 */
    @Excel(name = "身份证号")
    private String idcard;


    @Excel(name = "医生性别", readConverterExp = "0=男,1=女",dictType = "sys_user_sex")
    private String sex;

    /** 医生地址 */
    @Excel(name = "医生地址",width = 28)
    private String address;



    /** 所属医院 */
    private Long deptId;

    /** 医生状态 */
    @Excel(name = "医生状态", readConverterExp = "0=正常,1=停用", type = Excel.Type.EXPORT)
    private String status;

    private String password;

    /** 佣金总额 */
    private BigDecimal amount;

    /** 佣金余额 */
    private BigDecimal balance;

    /** 返佣金额 */
    private BigDecimal kickback;

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }
    public void setAddress(String address)
    {
        this.address = address;
    }

    public String getAddress()
    {
        return address;
    }
    public void setIdcard(String idcard)
    {
        this.idcard = idcard;
    }

    public String getIdcard()
    {
        return idcard;
    }
    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getDeptId()
    {
        return deptId;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setAmount(BigDecimal amount)
    {
        this.amount = amount;
    }

    public BigDecimal getAmount()
    {
        return amount;
    }
    public void setBalance(BigDecimal balance)
    {
        this.balance = balance;
    }

    public BigDecimal getBalance()
    {
        return balance;
    }
    public void setKickback(BigDecimal kickback)
    {
        this.kickback = kickback;
    }

    public BigDecimal getKickback()
    {
        return kickback;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("phone", getPhone())
            .append("address", getAddress())
            .append("idcard", getIdcard())
            .append("deptId", getDeptId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("status", getStatus())
            .append("amount", getAmount())
            .append("balance", getBalance())
            .append("kickback", getKickback())
            .toString();
    }
}
